import { drag_dom_staticNode } from './cla_drag_dom_staticNode';
import { drag_dom_eventBind } from './cla_drag_dom_eventBind';
import { spacename_drag_dom } from '../DataDefine/sourceData';
import { listenEvent_mana } from '../../../Classes/listenEvent_mana/Classes/cla_listenEvent_mana';
import { listenCssVar_mana } from '../../../Classes/cla_listenCssVar_mana';

const drag_dom_dataManaTag = 'drag_dom_dataMana';

export class drag_dom_dataMana extends drag_dom_staticNode {
  get [Symbol.toStringTag]() {
    return drag_dom_dataManaTag;
  }

  constructor(props: HTMLElement) {
    super(props);

    this.cssvarObj = new listenCssVar_mana(this.target_dom);
  }

  /**
   * 事件 绑定 this
   */
  eventBind = new drag_dom_eventBind();

  /**
   * 事件 监听管理
   */
  eventM = new listenEvent_mana(spacename_drag_dom);

  startTop: number = 0;
  mouseTop: number = 0;
  startLeft: number = 0;
  mouseLeft: number = 0;

  cssvarObj: listenCssVar_mana;

  framekey_lock: boolean = false;
}
